package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TCkPickingwavegoods;
import com.ruoyi.system.domain.UpdateStatusRequest;
import org.apache.ibatis.annotations.Select;

/**
 * 出库任务查询Mapper接口
 *
 * @author ruoyi
 * @date 2024-09-04
 */
public interface TCkPickingwavegoodsMapper
{
    /**
     * 查询出库任务查询
     *
     * @param PICKINGID 出库任务查询主键
     * @return 出库任务查询
     */
    public TCkPickingwavegoods selectTCkPickingwavegoodsByPICKINGID(String PICKINGID);

    /**
     * 查询出库任务查询列表
     *
     * @param tCkPickingwavegoods 出库任务查询
     * @return 出库任务查询集合
     */
    public List<TCkPickingwavegoods> selectTCkPickingwavegoodsList(TCkPickingwavegoods tCkPickingwavegoods);
    public List<TCkPickingwavegoods> select();

    /**
     * 新增出库任务查询
     *
     * @param tCkPickingwavegoods 出库任务查询
     * @return 结果
     */
    public int insertTCkPickingwavegoods(TCkPickingwavegoods tCkPickingwavegoods);

    /**
     * 修改出库任务查询
     *
     * @param tCkPickingwavegoods 出库任务查询
     * @return 结果
     */
    public int updateTCkPickingwavegoods(TCkPickingwavegoods tCkPickingwavegoods);

    /**
     * 删除出库任务查询
     *
     * @param PICKINGID 出库任务查询主键
     * @return 结果
     */
    public int deleteTCkPickingwavegoodsByPICKINGID(String PICKINGID);

    /**
     * 批量删除出库任务查询
     *
     * @param PICKINGIDs 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTCkPickingwavegoodsByPICKINGIDs(String[] PICKINGIDs);

    int updateCkSts(UpdateStatusRequest request);

    @Select("SELECT COUNT(*) FROM T_CK_PICKINGWAVEGOODS_BACK WHERE CONVERT(VARCHAR(10), WARE_DATE, 120) = CONVERT(VARCHAR(10), GETDATE(), 120)")
    int selectCount();

    public List<TCkPickingwavegoods> selectTypes(String locId);
}
